Cardioversion with a pulsed biphasic waveform